gtk4.git
5 years agoUpdate Croatian translation
Goran Vidović [Tue, 1 Sep 2020 21:14:00 +0000 (21:14 +0000)]
Update Croatian translation

5 years agoUpdated Lithuanian translation
Aurimas Černius [Tue, 1 Sep 2020 19:45:16 +0000 (22:45 +0300)]
Updated Lithuanian translation

5 years agoUpdate Galician translation
Fran Dieguez [Tue, 1 Sep 2020 19:08:43 +0000 (19:08 +0000)]
Update Galician translation

5 years agoMerge branch 'license-clarification' into 'master'
Matthias Clasen [Tue, 1 Sep 2020 18:58:52 +0000 (18:58 +0000)]
Merge branch 'license-clarification' into 'master'

License clarification

See merge request GNOME/gtk!2517

5 years agoMerge branch 'matthiasc/for-master' into 'master'
Matthias Clasen [Tue, 1 Sep 2020 18:26:21 +0000 (18:26 +0000)]
Merge branch 'matthiasc/for-master' into 'master'

Matthiasc/for master

Closes #3107

See merge request GNOME/gtk!2516

5 years agoAdd a license clarification
Matthias Clasen [Tue, 1 Sep 2020 18:11:28 +0000 (14:11 -0400)]
Add a license clarification

5 years agoMove timsort sources to a subdirectory
Matthias Clasen [Tue, 1 Sep 2020 18:22:09 +0000 (14:22 -0400)]
Move timsort sources to a subdirectory

This makes it easier to identify the files that
belong together, and are under the same license.

5 years agoinspector: Plug another memory leak
Matthias Clasen [Tue, 1 Sep 2020 17:06:20 +0000 (13:06 -0400)]
inspector: Plug another memory leak

Fixes: #3107
5 years agotreelistrowsorter: Plug a memory leak
Matthias Clasen [Tue, 1 Sep 2020 17:01:34 +0000 (13:01 -0400)]
treelistrowsorter: Plug a memory leak

5 years agoinspector: Plug a small memory leak
Matthias Clasen [Tue, 1 Sep 2020 16:56:51 +0000 (12:56 -0400)]
inspector: Plug a small memory leak

5 years agoMerge branch 'listview-constructors' into 'master'
Benjamin Otte [Tue, 1 Sep 2020 16:42:09 +0000 (16:42 +0000)]
Merge branch 'listview-constructors' into 'master'

list widgets: Simplify the constructors

See merge request GNOME/gtk!2515

5 years agolist widgets: Simplify the constructors
Matthias Clasen [Tue, 1 Sep 2020 16:24:06 +0000 (12:24 -0400)]
list widgets: Simplify the constructors

Now that both arguments to the _new_with_factory() constructors
are nullable, there's no good reason to keep a separate _new()
around. Just make gtk_list_view_new() and gtk_grid_view_new()
take both a model and a factory.

5 years agoMerge branch 'projective-transform' into 'master'
Matthias Clasen [Tue, 1 Sep 2020 13:44:38 +0000 (13:44 +0000)]
Merge branch 'projective-transform' into 'master'

Replace uses of graphene_matrix_transform_

See merge request GNOME/gtk!2514

5 years agoReplace uses of graphene_matrix_transform_
Matthias Clasen [Tue, 1 Sep 2020 12:54:01 +0000 (08:54 -0400)]
Replace uses of graphene_matrix_transform_

Replace our uses of graphene_matrix_transform_point,
_point3d and _bounds by our own versions that handle
projective transforms correctly.

This fixes render node bounds being incorrect for widgets
involving projective transforms (e.g. testrevealer swing
transformations), and also fixes picking on such widgets.

5 years agogsk: Add some private transform apis
Matthias Clasen [Tue, 1 Sep 2020 12:36:45 +0000 (08:36 -0400)]
gsk: Add some private transform apis

Some of the graphene_matrix_transform apis don't work
correctly with projective matrices, so add our own
variants.

5 years agoUpdate Basque translation
Asier Sarasua Garmendia [Tue, 1 Sep 2020 12:21:34 +0000 (12:21 +0000)]
Update Basque translation

5 years agoMerge branch 'view-selection-model-3' into 'master'
Benjamin Otte [Tue, 1 Sep 2020 11:08:51 +0000 (11:08 +0000)]
Merge branch 'view-selection-model-3' into 'master'

list widgets: Use selection models in the api

See merge request GNOME/gtk!2512

5 years agoUpdated Spanish translation
Daniel Mustieles [Tue, 1 Sep 2020 09:05:08 +0000 (11:05 +0200)]
Updated Spanish translation

5 years agoMerge branch 'adwaita-more-border-spacing' into 'master'
Matthias Clasen [Mon, 31 Aug 2020 21:17:21 +0000 (21:17 +0000)]
Merge branch 'adwaita-more-border-spacing' into 'master'

Adwaita: Add border-spacing to some container widgets and style classes (properly)

See merge request GNOME/gtk!2479

5 years agolist widgets: Use selection models in the api
Matthias Clasen [Mon, 31 Aug 2020 21:06:48 +0000 (17:06 -0400)]
list widgets: Use selection models in the api

Change the apis in GtkListView, GtkColumnView and
GtkGridView to be explicitly about GtkSelectionModel,
to make it obvious that the widgets handle selection.

Update all users.

5 years agoUpdated Slovenian translation
Matej Urbančič [Mon, 31 Aug 2020 19:53:05 +0000 (21:53 +0200)]
Updated Slovenian translation

5 years agoUpdated Slovenian translation
Matej Urbančič [Mon, 31 Aug 2020 19:50:01 +0000 (21:50 +0200)]
Updated Slovenian translation

5 years agoNEWS: Updates
Matthias Clasen [Mon, 31 Aug 2020 17:37:52 +0000 (13:37 -0400)]
NEWS: Updates

5 years agoMerge branch 'wip/baedert/for-master' into 'master'
Matthias Clasen [Mon, 31 Aug 2020 16:30:21 +0000 (16:30 +0000)]
Merge branch 'wip/baedert/for-master' into 'master'

Wip/baedert/for master

Closes #2777

See merge request GNOME/gtk!2503

5 years agoMerge branch 'fix_resource_leak_in_gdkdisplayclose_gtk4' into 'master'
Matthias Clasen [Mon, 31 Aug 2020 16:17:05 +0000 (16:17 +0000)]
Merge branch 'fix_resource_leak_in_gdkdisplayclose_gtk4' into 'master'

Fix resource leak in gdk_display_close() under Wayland

See merge request GNOME/gtk!2511

5 years agopagesetupdialog: Just use labels in check buttons
Matthias Clasen [Mon, 31 Aug 2020 16:05:53 +0000 (12:05 -0400)]
pagesetupdialog: Just use labels in check buttons

Check buttons lost their ability to hold general
content. And while that is maybe sad, the tiny
images here are not really useful anyway, and
should just go away.

5 years agoFix resource leak in gdk_display_close() under Wayland
Julien Ropé [Mon, 31 Aug 2020 15:26:18 +0000 (17:26 +0200)]
Fix resource leak in gdk_display_close() under Wayland

When using the gdk_display_close(), the handle to the Wayland compositor was not released. This could cause the consumption of all available handles, preventing other processes from accessing the display.

Fixing this by calling wl_display_disconnect() when releasing the GdkWaylandDisplay object.

Signed-off-by: Julien Ropé <jrope@redhat.com>
5 years agoFix a typo
Matthias Clasen [Mon, 31 Aug 2020 14:50:14 +0000 (10:50 -0400)]
Fix a typo

5 years agoUpdate Japanese translation
sicklylife [Mon, 31 Aug 2020 14:36:14 +0000 (14:36 +0000)]
Update Japanese translation

5 years agoUpdate Japanese translation
sicklylife [Mon, 31 Aug 2020 14:30:59 +0000 (14:30 +0000)]
Update Japanese translation

5 years agoUpdate Chinese (China) translation
Boyuan Yang [Mon, 31 Aug 2020 13:44:27 +0000 (13:44 +0000)]
Update Chinese (China) translation

5 years agoFix up the focus-chain tests
Matthias Clasen [Mon, 31 Aug 2020 12:20:25 +0000 (08:20 -0400)]
Fix up the focus-chain tests

Several typos here, and some of the expected
output changes due to widget class changes.

5 years agodoc shooter: Remove radio button remnants
Matthias Clasen [Mon, 31 Aug 2020 12:13:20 +0000 (08:13 -0400)]
doc shooter: Remove radio button remnants

5 years agoUpdate Brazilian Portuguese translation
Rafael Fontenelle [Mon, 31 Aug 2020 11:12:54 +0000 (11:12 +0000)]
Update Brazilian Portuguese translation

5 years agoMerge branch 'nana-4/gtk-fix-circular-button-styling'
Jakub Steiner [Mon, 31 Aug 2020 09:27:29 +0000 (11:27 +0200)]
Merge branch 'nana-4/gtk-fix-circular-button-styling'

5 years agoAdwaita: Ensure button.circular is a perfect circle
nana-4 [Fri, 28 Aug 2020 12:56:30 +0000 (21:56 +0900)]
Adwaita: Ensure button.circular is a perfect circle

It seems the commit 9d60047616661dc073ca6310193c2e18a3aaa59c had no
effect, even on image buttons.

5 years agoAdwaita: rich-list styling
Jakub Steiner [Mon, 17 Aug 2020 11:18:07 +0000 (13:18 +0200)]
Adwaita: rich-list styling

FIXME: why is the second list in Demo>List Box>Controls taller?

5 years agoUpdate Ukrainian translation
Yuri Chornoivan [Mon, 31 Aug 2020 06:13:57 +0000 (06:13 +0000)]
Update Ukrainian translation

5 years agoUpdate Indonesian translation
Kukuh Syafaat [Mon, 31 Aug 2020 06:04:08 +0000 (06:04 +0000)]
Update Indonesian translation

5 years agoUpdate Indonesian translation
Kukuh Syafaat [Mon, 31 Aug 2020 06:02:57 +0000 (06:02 +0000)]
Update Indonesian translation

5 years agomigration guide: Mention button hierarchy changes
Matthias Clasen [Mon, 31 Aug 2020 02:25:56 +0000 (22:25 -0400)]
migration guide: Mention button hierarchy changes

5 years agoDrop GtkRadioButton
Matthias Clasen [Mon, 31 Aug 2020 02:25:36 +0000 (22:25 -0400)]
Drop GtkRadioButton

5 years agobuilder-tool: Replace radio buttons by check buttons
Matthias Clasen [Mon, 31 Aug 2020 01:07:20 +0000 (21:07 -0400)]
builder-tool: Replace radio buttons by check buttons

For --3to4, replace GtkRadioButton by either GtkCheckButton
or GtkToggleButton, depending on the value of :draw-indicator.

Update the testsuite to cover this.

5 years agowidget-factory: Stop using radio buttons
Matthias Clasen [Mon, 31 Aug 2020 02:17:02 +0000 (22:17 -0400)]
widget-factory: Stop using radio buttons

Use grouped toggle buttons for the view switcher
on page 2.

5 years agoiconbrowser: Stop using radio buttons
Matthias Clasen [Mon, 31 Aug 2020 01:51:20 +0000 (21:51 -0400)]
iconbrowser: Stop using radio buttons

Replace them with grouped toggle buttons.

5 years agofontrendering demo: Stop using radio buttons
Matthias Clasen [Mon, 31 Aug 2020 01:50:45 +0000 (21:50 -0400)]
fontrendering demo: Stop using radio buttons

Replace them with grouped toggled buttons.

5 years agotogglebutton: Add grouping
Matthias Clasen [Mon, 31 Aug 2020 01:48:00 +0000 (21:48 -0400)]
togglebutton: Add grouping

This is the replacement for groups of radiobuttons
with draw-indicator = FALSE.

5 years agoRemove GtkRadioButton uses in ui files in tests
Matthias Clasen [Mon, 31 Aug 2020 00:59:05 +0000 (20:59 -0400)]
Remove GtkRadioButton uses in ui files in tests

5 years agoRemove GtkRadioButton references in the docs
Matthias Clasen [Mon, 31 Aug 2020 00:57:25 +0000 (20:57 -0400)]
Remove GtkRadioButton references in the docs

5 years agoClean up uses of gtk_toggle_button_get/set_active
Matthias Clasen [Sun, 30 Aug 2020 23:36:27 +0000 (19:36 -0400)]
Clean up uses of gtk_toggle_button_get/set_active

Replace all uses on check buttons by the corresponding
check button api.

5 years agodocs: Update the gallery image for check buttons
Matthias Clasen [Sun, 30 Aug 2020 22:56:35 +0000 (18:56 -0400)]
docs: Update the gallery image for check buttons

Show grouped and ungrouped check buttons.

5 years agodoc shooter: Drop radio buttons
Matthias Clasen [Sun, 30 Aug 2020 22:55:47 +0000 (18:55 -0400)]
doc shooter: Drop radio buttons

Instead, show grouped checkbuttons.

5 years agobuild: The doc shooter works without x11 now
Matthias Clasen [Sun, 30 Aug 2020 22:54:53 +0000 (18:54 -0400)]
build: The doc shooter works without x11 now

No need to restrict the build to just x11.
We're not using pixmaps anymore.

5 years agoDrop a long-dead test
Matthias Clasen [Sun, 30 Aug 2020 22:43:33 +0000 (18:43 -0400)]
Drop a long-dead test

We don't parse rc files anymore. Time for testrc.c to go.

5 years agotests: Stop using radio buttons
Matthias Clasen [Sun, 30 Aug 2020 22:21:48 +0000 (18:21 -0400)]
tests: Stop using radio buttons

Use grouped check buttons.

5 years agocheckbutton: Reuse a helper function
Matthias Clasen [Sun, 30 Aug 2020 22:21:22 +0000 (18:21 -0400)]
checkbutton: Reuse a helper function

5 years agocheckbutton: Fix clicking on the last group member
Matthias Clasen [Sun, 30 Aug 2020 22:19:05 +0000 (18:19 -0400)]
checkbutton: Fix clicking on the last group member

Clicking on the last group member was letting me
uncheck it, creating a radio group without active
item, which is not what we want.

5 years agopagesetupdialog: Drop gtkradiobutton.h include
Matthias Clasen [Sun, 30 Aug 2020 21:57:35 +0000 (17:57 -0400)]
pagesetupdialog: Drop gtkradiobutton.h include

No longer used.

5 years agostackswitcher: Drop gtkradiobutton.h include
Matthias Clasen [Sun, 30 Aug 2020 21:56:11 +0000 (17:56 -0400)]
stackswitcher: Drop gtkradiobutton.h include

No longer used.

5 years agoinspector: Drop gtkradiobutton.h include
Matthias Clasen [Sun, 30 Aug 2020 21:55:54 +0000 (17:55 -0400)]
inspector: Drop gtkradiobutton.h include

No longer used.

5 years agocheckbutton: Drop gtkradiobutton.h include
Matthias Clasen [Sun, 30 Aug 2020 21:55:13 +0000 (17:55 -0400)]
checkbutton: Drop gtkradiobutton.h include

No longer used.

5 years agomountoperation: Stop using radio buttons
Matthias Clasen [Sun, 30 Aug 2020 21:51:21 +0000 (17:51 -0400)]
mountoperation: Stop using radio buttons

Use grouped check buttons instead.

5 years agoprinteroptionwidget: Stop using radio buttons
Matthias Clasen [Sun, 30 Aug 2020 21:43:00 +0000 (17:43 -0400)]
printeroptionwidget: Stop using radio buttons

Use grouped check buttons instead.

5 years agogtk-demo: Fix up the fontrendering demo
Matthias Clasen [Mon, 31 Aug 2020 01:21:38 +0000 (21:21 -0400)]
gtk-demo: Fix up the fontrendering demo

5 years agoMerge branch 'matthiasc/for-master' into 'master'
Matthias Clasen [Sun, 30 Aug 2020 22:01:45 +0000 (22:01 +0000)]
Merge branch 'matthiasc/for-master' into 'master'

Matthiasc/for master

Closes #3104

See merge request GNOME/gtk!2507

5 years agogtk-demo: Port to font explorer to grouped checkbuttons
Matthias Clasen [Sun, 30 Aug 2020 21:35:53 +0000 (17:35 -0400)]
gtk-demo: Port to font explorer to grouped checkbuttons

Stop using radio buttons here.

5 years agowidget-factory: Fix up radio buttons
Matthias Clasen [Sun, 30 Aug 2020 21:05:43 +0000 (17:05 -0400)]
widget-factory: Fix up radio buttons

Keep calling them radiobutton, since that is what they are.
And make the insensitive second group of three match what
we have in gtk3-widget-factory, and be parallel to the
insensitive checkbuttons next to it.

5 years agoprintdialog: Make collate image smaller
Matthias Clasen [Sun, 30 Aug 2020 21:00:15 +0000 (17:00 -0400)]
printdialog: Make collate image smaller

This matches the appearance on GTK 3, and prevents
the checkbuttons next to the image from being spaced
out.

5 years agoprintdialog: Fix radio groups
Matthias Clasen [Sun, 30 Aug 2020 20:58:17 +0000 (16:58 -0400)]
printdialog: Fix radio groups

We need to use grouped checkbuttons now.

5 years agofontchooser: Fix radio groups for features
Matthias Clasen [Sun, 30 Aug 2020 20:41:02 +0000 (16:41 -0400)]
fontchooser: Fix radio groups for features

We need to use grouped checkbuttons now.

5 years agoBetter fontconfig suppression
Matthias Clasen [Sun, 30 Aug 2020 17:14:55 +0000 (13:14 -0400)]
Better fontconfig suppression

5 years agoinspector: Add some translator comments
Matthias Clasen [Sun, 30 Aug 2020 17:11:39 +0000 (13:11 -0400)]
inspector: Add some translator comments

Some of the strings we have here are hard to translate,
so leave some hints, and some context.

Fixes: #3104
5 years agoinspector: Add a dark background to the recorder
Matthias Clasen [Sun, 30 Aug 2020 12:59:13 +0000 (08:59 -0400)]
inspector: Add a dark background to the recorder

Add a button to toggle the background in the node
view between dark and light. This helps to discern
the borders of some nodes.

5 years agoAnother attempt to make circular buttons square
Matthias Clasen [Sun, 30 Aug 2020 12:34:30 +0000 (08:34 -0400)]
Another attempt to make circular buttons square

circular button, square hole...

5 years agoMerge branch 'matthiasc/for-master' into 'master'
Matthias Clasen [Sun, 30 Aug 2020 12:29:24 +0000 (12:29 +0000)]
Merge branch 'matthiasc/for-master' into 'master'

Matthiasc/for master

Closes #3098

See merge request GNOME/gtk!2506

5 years agoUpdate British English translation
Bruce Cowan [Sun, 30 Aug 2020 11:46:48 +0000 (11:46 +0000)]
Update British English translation

5 years agoUpdate Basque translation
Asier Sarasua Garmendia [Sun, 30 Aug 2020 10:26:53 +0000 (10:26 +0000)]
Update Basque translation

5 years agoUpdate Basque translation
Asier Sarasua Garmendia [Sun, 30 Aug 2020 10:23:55 +0000 (10:23 +0000)]
Update Basque translation

5 years agogtk-demo: Cosmetic change to the css shadows demo
Matthias Clasen [Sat, 29 Aug 2020 20:42:30 +0000 (16:42 -0400)]
gtk-demo: Cosmetic change to the css shadows demo

Make the text view in the bottom take up the bulk
of the window, as it used to be.

5 years agopage setup dialog: Prevent cascading paper dialogs
Matthias Clasen [Sat, 29 Aug 2020 20:29:28 +0000 (16:29 -0400)]
page setup dialog: Prevent cascading paper dialogs

We trigger the paper dialog when the "manage" item
in the dropdown is selected. But the selection also
changes due to internal changes, such as reloading
the custom paper list when the paper dialog is
closed. We need to be extra careful to avoid triggering
another paper dialog when that happens.

Fixes: #3098
5 years agoprint dialog: Prevent cascading paper dialogs
Matthias Clasen [Sat, 29 Aug 2020 20:00:01 +0000 (16:00 -0400)]
print dialog: Prevent cascading paper dialogs

We trigger the paper dialog when the "manage" item
in the dropdown is selected. But the selection also
changes due to internal changes, such as reloading
the custom paper list when the paper dialog is
closed. We need to be extra careful to avoid triggering
another paper dialog when that happens.

5 years agoMerge branch 'matthiasc/for-master' into 'master'
Matthias Clasen [Sat, 29 Aug 2020 17:37:18 +0000 (17:37 +0000)]
Merge branch 'matthiasc/for-master' into 'master'

Matthiasc/for master

See merge request GNOME/gtk!2504

5 years agocss: Fix parsing of scientific notation
Matthias Clasen [Sat, 29 Aug 2020 16:12:09 +0000 (12:12 -0400)]
css: Fix parsing of scientific notation

The parser got its chars mixed up while parsing numbers
like 2.3e-04. While it is unlikely to meet such numbers
in human-generated css, we do have them e.g. when saving
render node trees with transforms.

Also add some css parser tests for number parsing.

5 years agoUpdate Chinese (China) translation
Boyuan Yang [Sat, 29 Aug 2020 15:22:48 +0000 (15:22 +0000)]
Update Chinese (China) translation

5 years agoChange button hierarchy
Timm Bäder [Fri, 7 Aug 2020 03:45:30 +0000 (05:45 +0200)]
Change button hierarchy

A radiobutton without indicator is really just a togglebutton with a
group.

A radiobutton with indicator is really just a checkbutton with a group.

Make checkbutton its own widget not inheriting from GtkButton.
GtkRadioButton could be removed but it stays for now.

Radiobutton && !draw-indicator => Togglebutton
Checkbutton && !draw-indicator => Togglebutton

Radiobutton && draw-indicator => CheckButton + group

5 years agorendernodes: Whitespace
Timm Bäder [Sat, 29 Aug 2020 10:03:20 +0000 (12:03 +0200)]
rendernodes: Whitespace

5 years agowayland: Fix a GSettingsSchema leak
Timm Bäder [Sat, 29 Aug 2020 09:38:07 +0000 (11:38 +0200)]
wayland: Fix a GSettingsSchema leak

5 years agogl renderer: Adjust gaussian blur sigma
Timm Bäder [Sat, 29 Aug 2020 09:30:45 +0000 (11:30 +0200)]
gl renderer: Adjust gaussian blur sigma

To look more like what browsers do.

5 years agotestoutsetshadowdrawing: Make window background white
Timm Bäder [Sat, 29 Aug 2020 09:29:55 +0000 (11:29 +0200)]
testoutsetshadowdrawing: Make window background white

This makes it easier to compare the rendering with other sources.

5 years agogl: Adjust blur radius_multiplier
Timm Bäder [Fri, 7 Aug 2020 04:43:06 +0000 (06:43 +0200)]
gl: Adjust blur radius_multiplier

2.0 Looks much closer to what my browser does.

Fixes #2777

5 years agoUpdate Chinese (China) translation
Boyuan Yang [Sat, 29 Aug 2020 14:19:45 +0000 (14:19 +0000)]
Update Chinese (China) translation

5 years agoicon-browser: Add .navigation-sidebar to sidebar
Timm Bäder [Sat, 22 Aug 2020 15:30:30 +0000 (17:30 +0200)]
icon-browser: Add .navigation-sidebar to sidebar

5 years agogdkcairoprivate: Fix header guard
Timm Bäder [Fri, 21 Aug 2020 03:41:07 +0000 (05:41 +0200)]
gdkcairoprivate: Fix header guard

5 years agospinbutton: Whitespace
Timm Bäder [Fri, 21 Aug 2020 03:40:59 +0000 (05:40 +0200)]
spinbutton: Whitespace

5 years agobutton: Use gtk_widget_class_add_shortcut directly
Timm Bäder [Sat, 15 Aug 2020 12:27:24 +0000 (14:27 +0200)]
button: Use gtk_widget_class_add_shortcut directly

To show how that works

5 years agobutton: Whitespace
Timm Bäder [Sat, 15 Aug 2020 09:54:38 +0000 (11:54 +0200)]
button: Whitespace

5 years agotestadjustsize: Fix overlay/box confusion
Timm Bäder [Wed, 12 Aug 2020 04:55:33 +0000 (06:55 +0200)]
testadjustsize: Fix overlay/box confusion

5 years agogsk: Fix border node diff implementation
Timm Bäder [Fri, 7 Aug 2020 04:54:16 +0000 (06:54 +0200)]
gsk: Fix border node diff implementation

This was showing up in the interactive constraint demo in gtk4-demo.

5 years agoUpdate POTFILES.skip
Piotr Drąg [Sat, 29 Aug 2020 08:55:11 +0000 (10:55 +0200)]
Update POTFILES.skip

5 years agoUpdate Korean translation
Changwoo Ryu [Sat, 29 Aug 2020 03:57:33 +0000 (03:57 +0000)]
Update Korean translation